package com.pandora.credit.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author developer
 */
public class Message {
  private long id;
  @JsonProperty("customer_id")
  private long customerId;
  @JsonProperty("object_id")
  private long objectId;
  @JsonProperty("read_status")
  private int readStatus;
  @JsonProperty("create_time")
  private Timestamp createTime;
  @JsonProperty("update_time")
  private Timestamp updateTime;
  private int valid;

  @JsonProperty("_id")
  private long objId;
  private String content;
  @JsonProperty("send_time")
  private Date sendTime;
  @JsonProperty("is_sent")
  private int isSent;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public long getCustomerId() {
    return customerId;
  }

  public void setCustomerId(long customerId) {
    this.customerId = customerId;
  }

  public long getObjectId() {
    return objectId;
  }

  public void setObjectId(long objectId) {
    this.objectId = objectId;
  }

  public int getReadStatus() {
    return readStatus;
  }

  public void setReadStatus(int readStatus) {
    this.readStatus = readStatus;
  }

  public Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Timestamp createTime) {
    this.createTime = createTime;
  }

  public Timestamp getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Timestamp updateTime) {
    this.updateTime = updateTime;
  }

  public int getValid() {
    return valid;
  }

  public void setValid(int valid) {
    this.valid = valid;
  }

    public long getObjId() {
        return objId;
    }

    public void setObjId(long objId) {
        this.objId = objId;
    }

    public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Date getSendTime() {
    return sendTime;
  }

  public void setSendTime(Date sendTime) {
    this.sendTime = sendTime;
  }

  public int getIsSent() {
    return isSent;
  }

  public void setIsSent(int isSent) {
    this.isSent = isSent;
  }
}
